package com.example.a14110100420.yuejian.WSerivice;

import com.example.a14110100420.yuejian.Wbean.club.ClubCourse;
import com.example.a14110100420.yuejian.Wbean.club.ClubDetail;
import com.example.a14110100420.yuejian.Wbean.club.Clublist;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by wanger on 2017/11/5.
 */

public interface ClubService {
    //俱乐部列表
    @GET("lists/mod/club")
    Call<List<Clublist>> getClublist(

            );

    //俱乐部详情
    @GET("get/mod/club/id/")
    Call<ClubDetail> getClubDetail(
            @Query("id") String id
    );

    //获取俱乐部关注状态
    @GET("isExits/mod/fans/")
    Call<Integer> getFansState(
            @Query("fan_id") String fan_id,
            @Query("userid") String userid,
            @Query("fans_type") String fan_type,
            @Query("SessonID") String SessonID
    );

    //关注俱乐部
    @GET("focus/SessionID/060pn7sjorpnq5fp53kid5st54/")
    Call<Integer> guanzhuClub(@Query("userid") String userid,
                                  @Query("fan_id") String fan_id,
                                  @Query("fans_type") String fans_typ);
    //俱乐部课程
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/")
    Call<ClubCourse> getClubCourse(@Query("id") String id,
                                   @Query("map") String map);


}
